<script>
import {
  getOpenid
} from './utils'
export default {
  created() {
    // 调用API从本地缓存中获取数据
    const logs = wx.getStorageSync("logs") || [];
    wx.setStorageSync("logs", logs);
    var userInfo = {
        // openId: "oQmbb4sNZdxaUQZ0sfYgvtOP2S7c",
       // nickName: "梁乐乐",
      // gender: 1,
      // language: "zh_CN",
      // city: "Changping",
      // province: "Beijing",
      // country: "China",
      // avatarUrl: "https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIbWFEIJj8IpGeHM7dGic1aTFZALjWcMm9ltWfFiaQfVRYticWBfgGfzXWMt2EkJWiaicPtftHAlWxUibxQ/132",
      // watermark: { timestamp: 1535513485, appid: "wx601ce71bde7b9add" }
    };
    // var openId = userInfo.openId;
    // wx.setStorageSync("userInfo", userInfo);
    // wx.setStorageSync("openId", openId);
    //获取openid
    // wx.setStorageSync("access_token", "bXl3dXd1Om15d3V3dQ==");
    // if (!wx.getStorageSync('userInfo')) {
    //   getOpenid();
    // }
  }
};
</script>

<style>
@import url("./iconfont/iconfont.css");

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 200rpx 0;
  box-sizing: border-box;
}

page {
  background: #f4f4f4;
  height: 100%;
}

button {
  background: none;
  padding: 0;
  font-weight: normal;
  font-size: 32rpx;
  box-sizing: content-box;
}
button::after {
  border: 0;
}

view,
text {
  font-size: 28rpx;
  color: #333;
}

.wxParse .p {
  margin: 0 !important;
}

.wxParse .img {
  display: block !important;
}

/* this rule will be remove */

/* * {
  transition: width 2s;
  -moz-transition: width 2s;
  -webkit-transition: width 2s;
  -o-transition: width 2s;
} */
</style>
